Deleting discussions

According to the DXL manual (v9.2):

delete (Discussion)
 Declaration
    string delete (Discussion& d)
 Operation
    Deletes the specified Discussion if the user has the permission to do so. Returns null on success, or an error string on failure.

 


However, the following attempt to use the function gives a compile error of " incorrect arguments for function (delete)" -- any ideas?

 

 

Discussion disc
 
Object o = current
 
for disc in o do {
 
delete (disc)
 
}



Thanks!



 


SystemAdmin - Wed Nov 18 19:15:19 EST 2009

Re: Deleting discussions
SystemAdmin - Thu Nov 19 04:36:08 EST 2009

I ran nto the same problem some time ago and the trick seems to be to set up the DOORS server (which must be 9.1 or higher) to exclude pre 9.1 clients.

from Support:
...I have created a defect for the error in the DXL reference manuel, the APAR number is PK84328. It documentation should be corrected. Concerning the minimum and maximum client version, it is written in the readme: ""You need to be using a Telelogic DOORS 9.1 Database Server, and the server must be configured to exclude DOORS 9.0 clients to make the new discussions functionality available."...


/Kristian

Re: Deleting discussions
SystemAdmin - Thu Nov 19 04:45:34 EST 2009

SystemAdmin - Thu Nov 19 04:36:08 EST 2009
I ran nto the same problem some time ago and the trick seems to be to set up the DOORS server (which must be 9.1 or higher) to exclude pre 9.1 clients.


from Support:
...I have created a defect for the error in the DXL reference manuel, the APAR number is PK84328. It documentation should be corrected. Concerning the minimum and maximum client version, it is written in the readme: ""You need to be using a Telelogic DOORS 9.1 Database Server, and the server must be configured to exclude DOORS 9.0 clients to make the new discussions functionality available."...


/Kristian

Even with that change the "delete(Discussion)" function outputs an error message. But going through the 9.2 doors.exe I found the function "string deleteDiscussion(Discussion, Object)" which seems to work OK.

Re: Deleting discussions
SystemAdmin - Thu Nov 19 07:30:18 EST 2009

What do you mean by "... going through the 9.2 doors.exe..." ?

Re: Deleting discussions
SystemAdmin - Thu Nov 19 07:42:46 EST 2009

SystemAdmin - Thu Nov 19 07:30:18 EST 2009
What do you mean by "... going through the 9.2 doors.exe..." ?

I opened the doors.exe from the "DOORS\9.2\bin" directory with a text editor capable of showing binary files in Hex edit mode (I use TextPad for this). In the text editor you can see all the strings included in the program file - DOORS DXL is an interpreted language so all the function declarations and error messages are included in the main program file.

If a text editor has a good search function then it is possible to search through this 22 MB file for some specific strings, e.g. "discussion" and find functions related to discussions.

Re: Deleting discussions
SystemAdmin - Thu Nov 19 09:14:25 EST 2009

SystemAdmin - Thu Nov 19 04:45:34 EST 2009
Even with that change the "delete(Discussion)" function outputs an error message. But going through the 9.2 doors.exe I found the function "string deleteDiscussion(Discussion, Object)" which seems to work OK.

You're right, I forgot about that bit! I got that logged as an error 2009-03-03!



...The documentation is wrong, the perm should be detailed as follows:

"string deleteDiscussion(Discussion&, {Module|Object})"

We have logged this as a documentation defect with PMR number 67665,110,846...

/Kristian